let hello: string = 'hello typescript';
class Stack {
	items = [];
	protected name = 'hello world';
	constructor(public x: any, public y?: any) {}
	push() {
		if (!this.y) {
			this.items.push(this.x);
		} else {
			this.items.push(this.x);
			this.items.push(this.y);
		}
	}
	pop() {
		this.items.pop();
	}
	getname() {
		return this.name;
	}
}

export { hello, Stack };
